package com.zimmur.dao.account;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.zimmur.model.account.CouponStock;

public interface ICouponStockDao {

	
	int updateStock(CouponStock couponStock);
	/**
	 * 通过couponStockId 查询优惠券批次信息
	 * @param stockId
	 * @return
	 */
	CouponStock  selectByStockId(int stockId);
	/**
	 * 通过渠道ID和手机号码查询可用代金券批次
	 * @param channelId
	 * @param mobileNo
	 * @return
	 */
	List<CouponStock> selecStocktByChannelId(@Param("channelId")int channelId,@Param("mobileNo")String mobileNo);
}
